<template>
  <router-view />
</template>
<script>
export default {
  name: "App",
  created() {
    if (!localStorage.getItem("token")) {
      return this.$router.push("/login");
    }
  },
};
</script>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}
</style>
